#include <cstdio>
#include <QApplication>

#include "qfitswindow.h"

int main(int argc, char *argv[]) {
	QApplication app(argc, argv);
	QFitsWindow *window = new QFitsWindow();
	setbuf(stdout, 0);
	setbuf(stderr, 0);
	if(argc>1)
		window->openFile(argv[1]);
	window->show();
	return app.exec();
}

